"""配置文件"""
import os

'''游戏界面一些数值'''
SCREENWIDTH = 640  # screenwidth   屏幕宽
SCREENHEIGHT = 480  # screenheight 屏幕高
BRICKWIDTH = 10  # brickwidth      砖头宽
BRICKHEIGHT = 10  # brickheight    砖头高
PADDLEWIDTH = 60  # paddlewidth      范围宽
PADDLEHEIGHT = 12  # paddleheight    范围高
BALLRADIUS = 8  # ballradius 球半径

'''游戏素材路径'''
FONTPATH = os.path.join(os.getcwd(), 'resources/font/font.TTF')  # fontpath,  #ttf是字体文件格式
HITSOUNDPATH = os.path.join(os.getcwd(), 'resources/audios/hit.wav')  # hitsoundpath  #wav音评文件
BGMPATH = os.path.join(os.getcwd(), 'resources/audios/bgm.mp3')  # 背景音乐
LEVELROOTPATH = os.path.join(os.getcwd(), 'resources/levels')  # 关卡文件
# os.listdir() 方法用于返回指定的文件夹包含的文件或文件夹的名字的列表
LEVELPATHS = [os.path.join(LEVELROOTPATH, '%s.level' % str(i + 1)) for i in range(len(os.listdir(LEVELROOTPATH)))]


'''一些颜色'''
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
PINK = (212, 149, 174)
PURPLE = (168, 152, 191)
YELLOW = (245, 237, 162)
BLUE = (51, 170, 230)
AQUA = (182, 225, 225)
